<?php
/**
 * Nordic Repository
 * 
 * LICENSE
 * 
 * The new BSD license is applied on this source-file. For further
 * information please visit http://license.nordic-dev.de/newbsd.txt
 * or send an email to andre.moelle@gmail.com.
 */

/**
 * Comments something out.
 * 
 * @category   Nordic
 * @package    Nordic_Pagebuilder
 * @copyright  2007 Nordic Development
 * @license    http://license.nordic-dev.de/newbsd.txt (New-BSD license)
 * @author     Andre Moelle <andre.moelle@gmail.com>
 * @version    $Id: Comment.php 3 2007-07-08 09:21:42Z andre.moelle $
 */
class Nordic_Pagebuilder_Decorator_Comment extends Nordic_Pagebuilder_Decorator
{
	/**
	 * Comments the content out.
	 * 
	 * @see Nordic_Pagebuilder_Decorator::__toString()
	 */
	public function __toString ()
	{
		$result = "<!--\n";
		
		if($obj = $this->getDecorated())
		{
			$result .= (string)$obj;
		}
		
		$result .= "\n-->\n";
		
		return $result;
	}
}
?>